<?php

class Zend_View_Helper_formataNota extends Zend_View_Helper_Abstract
{

    public static function formataNota($nota)
    {
        if((int)$nota==0){$str='0';}
            elseif($nota==100){ $str = 100; } 
            else { $str = sprintf("%01.1f", $nota);}
       
        return $str;
   }
}
?>
